package com.example.ricebibackend.dao.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.ricebibackend.dao.handler.UserPhoneTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("t_user")
public class UserDO extends BaseDO {
    private String userName; // 用户名称
    private String password; // 密码
    @TableField(typeHandler = UserPhoneTypeHandler.class)
    private PhoneNumberEncrypt userPhone; // 手机号码

    private Integer userRole; // 用户身份
    @TableLogic
    private Integer isDeleted; // 逻辑删除字段
}
